<!-- Father.vue -->
<template>
  <div>
    <div @click="handleFatherClick">Father: {{ msg1 }}</div>
    <!-- <grand-son v-bind="$attrs" v-on="$listeners" /> -->
    {{currComponents}}
  </div>
</template>

<script>
// import grandSon from './son'
export default {
  // components: { grandSon },
  props: ['msg1','currComponents'],
  mounted(){
    this.$emit("update:title", '这是新的title')
  },
  methods: {
    handleFatherClick() {
      console.log('father click')
      this.$emit('click')
    }
  }
}
</script>